package com.yunxin.core.utils.infra.common.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.concurrent.TimeUnit;

/**
 * @author zero°
 * @since 2023-06-11
 */
@RequiredArgsConstructor
@Getter
public enum CoreLockKey {
    /**
     * 任务执行
     */
    CONTACT_TASK_EXECUTE("distribution:core:contact:task:execute::", Boolean.FALSE, 10L, 30L, TimeUnit.SECONDS),
    ;

    private final String prefix;
    private final Boolean usePrefixAsFullKey;
    private final long waitTime;
    private final long releaseTime;
    private final TimeUnit timeUnit;
}
